package com.yauthor.module.time
{
	import flash.events.IEventDispatcher;

	public interface ITimeControllerSocket extends IEventDispatcher
	{
		/**
		 * Inject custom time counting controller class
		 */
		function setTimeCountingController(tccClass:Class):void;
		
		/**
		 * Get total time spent on the selected page in [ms]
		 */
		function getPageTimeAt(index:Number):Number;
		
		/**
		 * Get total time limit fot the selected page in [ms]
		 */
		function getPageTimeLimitAt(index:Number):Number;
		
		/**
		 * Get total time spent on the test in [ms] 
		 */
		function getTestTime():Number;
		
		/**
		 * Get time limit for the test in [ms] 
		 */
		function getTestTimeLimit():Number;
		
	}
}